package org.myself.meeting.mapper;

import org.apache.ibatis.annotations.Param;
import org.myself.meeting.model.Department;

import java.util.List;

public interface DepartmentMapper {
    //获取id的接口
    Department getDepById(Integer id);

    List<Department> getAllDeps();

    Integer addDepartment(String departmentname);

    Department getDepByName(String departmentname);

    Integer deleteDepartment(@Param("departmentid")Integer departmentid);

    Integer updateDepartment(@Param("departmentid")Integer id, @Param("departmentname") String name);
}
